<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>税开管理</title>
    <jsp:include page="../../import.jsp" flush="true"/>
</head>
<body class="iframeBody">
<form id="splBullMsgInfo_form">
    <div class="fieldset1 tabel_col tabel_col_s clearFix">

        <div class="fieldBox col_50">
            <div class="label">企业名称</div>
            <div class="field">
                <span id="corpCstNm" name="corpCstNm">&nbsp;</span>
            </div>
        </div>
        <div class="fieldBox col_50">
            <div class="label">操作人</div>
            <div class="field">
                <span id="operationNm" name="operationNm">&nbsp;</span>
            </div>
        </div>
        <div class="fieldBox col_50">
            <div class="label">证件类型</div>
            <div class="field">
                <span id="corpCertTypCdNm" name="corpCertTypCdNm">&nbsp;</span>
            </div>
        </div>
        <div class="fieldBox col_50">
            <div class="label">证件号码</div>
            <div class="field">
                <span id="corpCertNo" name="corpCertNo">&nbsp;</span>
            </div>
        </div>
        <div class="fieldBox col_50">
            <div class="label">第1-12月增值税开票总收入</div>
            <div class="field">
                <span id="invoiTotalReve1to12" name="invoiTotalReve1to12">&nbsp;</span>
            </div>
        </div>
        <div class="fieldBox col_50">
            <div class="label">第13-24月增值税开票总收入</div>
            <div class="field">
                <span id="invoiTotalReve1to24" name="invoiTotalReve1to24">&nbsp;</span>
            </div>
        </div>

        <div class="fieldBox col_50">
            <div class="label">企业级别</div>
            <div class="field" style="width: 100%;">
                <span id="enterpriseLevel" name="enterpriseLevel">&nbsp;</span>
            </div>
        </div>

        <div class="fieldBox col_100">
            <div class="label">备注</div>
            <div class="field" style="width: 100%;">
                <span id="rem" name="rem">&nbsp;</span>
            </div>
        </div>
    </div>

    <div class="fieldset1 tabel_col tabel_col_s clearFix noBorder">
        <div class="fieldBox col_100">
            <div class="label" style="height: auto">
                <span id="authBtn" class="sq-button sq-button-hasicon">获取三方数据</br>(剩余次数:${rcWlTpMgtVO.authCount})</span></br>
            </div>
            <div class="field" style="width: 100%;line-height: 35px;">
                <span id="authThreeDataDesc">
                    <c:if test="${rcWlTpMgtVO.authStsCd eq '1'}">获取失败,稍后请重新获取</c:if>
                    <c:if test="${rcWlTpMgtVO.authStsCd eq '2'}">三方数据已成功获取</c:if>
                    <c:if test="${rcWlTpMgtVO.authStsCd eq '3'}">无法获取,请手动补充数据</c:if>
                </span>
            </div>
        </div>
    </div>
    <div id="stand" class="fieldBox col_100">
        <div class="label"></div>
        <div class="field" style="text-align: center">
            <span name="" id="">&nbsp;</span>
        </div>
    </div>

    <div class="sqPanel">
        <div class="sqPanel_head inL">
            <span>证明文件</span>
        </div>
        <table class="table_full tbl_1">
            <tbody>
            <tr>
                <c:forEach items="${dtlList}" var="cstFile" varStatus="status">
                <c:if test="${status.index%4==0}">
            </tr>
            <tr>
                </c:if>
                <td>
                    <h5>${cstFile.datNm}</h5>
                    <div class="imgBox">
                        <c:if test="${ empty cstFile.filePath}">
                            <img src="${defImg}"  onclick="showImg(event);" fileId="">
                        </c:if>
                        <c:if test="${ not empty cstFile.filePath}">
                            <img id="imgPath" src="${cstFile.filePath}" onclick="showImg(event);" href="${cstFile.filePath}" fileId="">
                        </c:if>
                            <%-- <img src="${cstFile.fileRec.filePath}"> --%>
                    </div>
                    <div class="btns">
                        <%--<span class="sq-button sq-button-round co_normal"  sysCd="${cstFile.sysCd}" orgCd="${cstFile.orgCd}" cfgCd="${cstFile.cfgCd}" cfgDtlCd="${cstFile.cfgDtlCd}" &lt;%&ndash; cfgDtId="${cstFile.cfgDtId}"  &ndash;%&gt; onclick="uploadFile(this,'${cstFile.sysCd}','${cstFile.orgCd}','${cstFile.cfgCd}','${cstFile.cfgDtlCd}')">上传</span>--%>
                            <%--<span class="sq-button sq-button-round co_normal" &lt;%&ndash;  onclick="downLoad('${cstFile.fileRec.filePath}');" &ndash;%&gt;>--%>
                            <%--<a target="_blank"  href="<%=path%>/system/sysulfilesrec/downLoad.do?fileName=${cstFile.fileNm}&filePath=${cstFile.filePath}">下载</a>--%>
                            <%--</span>--%>
                            <%--<span class="sq-button sq-button-round co_normal" onclick="removeFileRec(this,'${cstFile.id}')">删除</span>--%>
                    </div>
                </td>
                </c:forEach>
            </tr>
            </tbody>
        </table>

    </div>

    <div class="btnsBox">
        <%--<span id="saveRcWlTpMgt_Btn" class="sq-button sq-button-round l-dialog-btn-ok">保存</span>--%>
        <input type="reset" id="resetBtn"  class="l-button l-button-reset Hide">
    </div>
</form>
<script>
    var corpCstNm = "${rcWlTpMgtVO.corpCstNm}";
    var operationNm = "${rcWlTpMgtVO.operationNm}";
    var corpCertTypCdNm = "${rcWlTpMgtVO.corpCertTypCdNm}";
    var corpCertNo = "${rcWlTpMgtVO.corpCertNo}";
    var invoiTotalReve1to12 = "${rcWlTpMgtVO.invoiTotalReve1to12}";
    var invoiTotalReve1to24 = "${rcWlTpMgtVO.invoiTotalReve1to24}";
    var enterpriseLevel = "${rcWlTpMgtVO.enterpriseLevel}";
    var rem = "${rcWlTpMgtVO.rem}";

    $(function() {
        $("#splBullMsgInfo_form").ligerForm({
            validate: true
        });
        $("#corpCstNm").html(corpCstNm);
        $("#operationNm").html(operationNm);
        $("#corpCertTypCdNm").html(corpCertTypCdNm);
        $("#corpCertNo").html(corpCertNo);
        $("#invoiTotalReve1to12").html(invoiTotalReve1to12);
        $("#invoiTotalReve1to24").html(invoiTotalReve1to24);
        $("#enterpriseLevel").html(enterpriseLevel);
        $("#rem").html(rem);
    });

    // 取消
    frameElement.dialog.onCancel = function () {
        frameElement.dialog.close();
    }

    function showImg(e){
        /* 		 e.preventDefault();
              var href = $(e.target).attr('href');
              if(!href){
                  return;
              }
              if(SQ.regs.img.test(href)){
                  SQ.imgPreview(href);
              } */
        e.preventDefault();
        var href = $(e.target).attr('src');
        if(!href){
            return;
        }
        if(SQ.regs.img.test(href)){
            var imgSrc = $(e.target).attr('src'),
                imgTit = $(e.target).attr('title');
            window.__ImgSrc = imgSrc;
            window.__ImgTit = imgTit;
            window.open('<%=path%>/project/prjbscinfo/imgWinOpen.do', '', 'location=yes, width=800, height=600');
        }
    }

</script>
</body>
</html>
